package com.qiaolang.Service;

import com.qiaolang.dao.RoleDAO;
import com.qiaolang.dao.UserDAO;
import com.qiaolang.pojo.ID;
import com.qiaolang.pojo.Users;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by lenovo on 2017/11/12.
 */
@Service
public class UserServiceImpl {
    @Autowired
    private UserDAO udao;

    @Autowired
    private RoleDAO pdao;
    public Users login(String StuNo){
        return udao.login(StuNo);
    }
    public List selectRole(String id){
        return pdao.selectRole(id);
    }
    public List queryAll(){
        return udao.queryAll();
    }
    public boolean qiandao(String userno){
        return udao.qianDao(userno);
    }
    public String chaxun(String userno){
        return udao.chaxun(userno);
    }
}
